package com.danger.dy.blogger;

import lombok.extern.slf4j.Slf4j;
import org.danger.dy.common.web.WebContext;
import org.springframework.boot.Banner;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * .
 */
@Slf4j
@SpringBootApplication
public class BloggerBootstrap {


    public static void main(String[] args) {
        ConfigurableApplicationContext context =
                new SpringApplicationBuilder(BloggerBootstrap.class)
                        .web(WebApplicationType.SERVLET) //指定web环境
                        .bannerMode(Banner.Mode.OFF)
                        .run(args);
        String url = WebContext.printServerInfo(context);
        System.out.println(url + "/api/chat/download");
    }

}
